package top.infopub.tdp.job.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.model.job.ScheduleLog;
import top.infopub.tdp.job.dao.ScheduleLogDao;
import top.infopub.tdp.job.service.ScheduleLogService;
import top.infopub.tdp.job.vo.SchedulelogVo;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;


@Service
public class ScheduleLogServiceImpl extends GenericServiceImpl<ScheduleLog, String> implements ScheduleLogService {

    @Autowired
    private ScheduleLogDao scheduleLogDao;

    @Override
    public GenericDao<ScheduleLog, String> getDao() {
        return scheduleLogDao;
    }
    
    @Override
    public Page<ScheduleLog> selectDataByCondition(Page<ScheduleLog> page,
                                                   SchedulelogVo schedulelogVo) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<ScheduleLog>)scheduleLogDao.selectSchedulelogByCondition(schedulelogVo);
    }

}